package com.qc.entity;

import java.sql.ResultSet;
import java.sql.SQLException;

public class OrderScheduleEntity extends BaseEntity {

	private long orderScheduleId;
	private long orderId;
	private long addUserId;
    private String startTime;
    private String date;//存年月日 方便查询
    private String shortTime;//存小时和分钟，方便显示
	private String title;
	private String shopMark;
	private String shopProvince;
	private String shopCity;
	private String shopDistrict;
	private String shopAddress;
	private double shopLatitude;
	private double shopLongitude;
	private String detail;
	
	private long bossUserId;
	
	public static OrderScheduleEntity getInstance(ResultSet rs) throws SQLException {
		OrderScheduleEntity entity = new OrderScheduleEntity();

		entity.setOrderScheduleId(rs.getLong("order_schedule_id"));
		entity.setOrderId(rs.getLong("order_id"));
		entity.setAddUserId(rs.getLong("add_user_id"));
		entity.setStartTime(rs.getString("start_time"));
		entity.setDate(rs.getString("date"));
		entity.setShortTime(rs.getString("short_time"));
		entity.setTitle(rs.getString("title"));
		entity.setShopMark(rs.getString("shop_mark"));
		entity.setShopProvince(rs.getString("shop_province"));
		entity.setShopCity(rs.getString("shop_city"));
		entity.setShopDistrict(rs.getString("shop_district"));
		entity.setShopAddress(rs.getString("shop_address"));
		entity.setShopLatitude(rs.getDouble("shop_latitude"));
		entity.setShopLongitude(rs.getDouble("shop_longitude"));
		entity.setDetail(rs.getString("detail"));

		return entity;
	}
	
	public long getOrderScheduleId() {
		return orderScheduleId;
	}
	public void setOrderScheduleId(long orderScheduleId) {
		this.orderScheduleId = orderScheduleId;
	}
	public long getOrderId() {
		return orderId;
	}
	public void setOrderId(long orderId) {
		this.orderId = orderId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getShopMark() {
		return shopMark;
	}
	public void setShopMark(String shopMark) {
		this.shopMark = shopMark;
	}
	public String getShopProvince() {
		return shopProvince;
	}
	public void setShopProvince(String shopProvince) {
		this.shopProvince = shopProvince;
	}
	public String getShopCity() {
		return shopCity;
	}
	public void setShopCity(String shopCity) {
		this.shopCity = shopCity;
	}
	public String getShopDistrict() {
		return shopDistrict;
	}
	public void setShopDistrict(String shopDistrict) {
		this.shopDistrict = shopDistrict;
	}
	public String getShopAddress() {
		return shopAddress;
	}
	public void setShopAddress(String shopAddress) {
		this.shopAddress = shopAddress;
	}
	
	public double getShopLatitude() {
		return shopLatitude;
	}

	public void setShopLatitude(double shopLatitude) {
		this.shopLatitude = shopLatitude;
	}

	public double getShopLongitude() {
		return shopLongitude;
	}

	public void setShopLongitude(double shopLongitude) {
		this.shopLongitude = shopLongitude;
	}

	public String getDetail() {
		return detail;
	}
	public void setDetail(String detail) {
		this.detail = detail;
	}
	public String getStartTime() {
		return startTime;
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public long getAddUserId() {
		return addUserId;
	}
	public void setAddUserId(long addUserId) {
		this.addUserId = addUserId;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public String getShortTime() {
		return shortTime;
	}
	public void setShortTime(String shortTime) {
		this.shortTime = shortTime;
	}

    public long getBossUserId() {
        return bossUserId;
    }

    public void setBossUserId(long bossUserId) {
        this.bossUserId = bossUserId;
    }
	
	
}
